package com.briup.user.mapper;

import com.briup.user.domain.pojo.Address;

import java.util.List;

/**
* @author qinyc
* @description 针对表【es_address(收货地址表)】的数据库操作Mapper
* @createDate 2024-12-24 09:16:52
* @Entity com.briup.store.pojo.Address
*/
public interface AddressMapper {

    List<Address> getAllByUserId(Integer userId);

    void insert(Address address);

    void update(Address address);

    void deleteById(Integer id);

    void setDefaultAddress(Integer id);

    void cancelDefaultAddress(Integer id);

    Integer selectIsHaveDefaultAddress(Integer userId);
}




